/**
 * redis连接
 */

const redis = require('redis')

const { REDIS_CONF } = require('../config/db')

const redisServer = redis.createClient(REDIS_CONF.port, REDIS_CONF.host)

redisServer.on('error', () => {
    console.log('redis连接出错了')
})

module.exports = {
    redisServer
}